﻿using System;
using System.Windows.Forms;

namespace TLD_SOM_GUI {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args) {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            String trainingSetLocation = null;

            if (!(args.Length == 1)) {
                Console.WriteLine("No directory argument");
            } else {
                trainingSetLocation = args[0];
                if (!System.IO.Directory.Exists(trainingSetLocation)) {
                    Console.WriteLine("Directory doesn't exist.");
                    trainingSetLocation = null;
                }
            }

            

            Application.Run(new SOMForm(trainingSetLocation));
        }
    }
}
